package com.zzz.common.swagger;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.common.swagger.config
 * @Author: zhai
 * @CreateTime: 2025-09-21  17:44
 * @Description: TODO
 * @Version: 1.0
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI  openAPI() {
        return new OpenAPI().info(new Info()
                .title("OJ-Project API")
                .description("在线oj系统接⼝⽂档")
                .version("v1"));
    }
}
